package com.heima.feign;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface WemediaFeign {

    @PostMapping("/wemedia/save")
     ResponseResult wemediaSave(@RequestBody WmUser wmUser);

    @GetMapping("/wemedia/find/{name}")
     WmUser wemediafind(@PathVariable("name") String name);
}
